\hypertarget{graphics_8c}{
\section{src/graphics.c File Reference}
\label{graphics_8c}\index{src/graphics.c@{src/graphics.c}}
}


Definitions of graphics-\/related functions for Qong.  


{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$types.h$>$}\par
{\ttfamily \#include $<$misc.h$>$}\par
{\ttfamily \#include $<$graphics.h$>$}\par
{\ttfamily \#include $<$defines.h$>$}\par
{\ttfamily \#include $<$SDL.h$>$}\par
{\ttfamily \#include $<$SDL\_\-opengl.h$>$}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{graphics_8c_ad28e113a400d75d182e64b567dddea8c}{initVideo} (SDL\_\-Surface $\ast$\hyperlink{qong_8c_a78fa3957d73de49cb81d047857504218}{screen}, Uint32 flags)
\begin{DoxyCompactList}\small\item\em Initializes SDL video for a screen. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Jon \char`\"{}delrio\char`\"{} Cox 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
February 1, 2011 
\end{DoxyDate}


Definition in file \hyperlink{graphics_8c_source}{graphics.c}.



\subsection{Function Documentation}
\hypertarget{graphics_8c_ad28e113a400d75d182e64b567dddea8c}{
\index{graphics.c@{graphics.c}!initVideo@{initVideo}}
\index{initVideo@{initVideo}!graphics.c@{graphics.c}}
\subsubsection[{initVideo}]{\setlength{\rightskip}{0pt plus 5cm}int initVideo (
\begin{DoxyParamCaption}
\item[{SDL\_\-Surface $\ast$}]{ screen, }
\item[{Uint32}]{ flags}
\end{DoxyParamCaption}
)}}
\label{graphics_8c_ad28e113a400d75d182e64b567dddea8c}

\begin{DoxyParams}{Parameters}
{\em screen} & SDL surface to initialize. \\
\hline
{\em flags} & Video mode flags to pass to SetVideoMode. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
False if operation failed, true if success.
\end{DoxyReturn}
Please note that a lot of this code was taken from the SDL initialization tutorial on gpwiki. Link: \href{http://gpwiki.org/index.php/SDL:Tutorials:Initializing_SDL_Libraries}{\tt http://gpwiki.org/index.php/SDL:Tutorials:Initializing\_\-SDL\_\-Libraries} 

Definition at line 27 of file graphics.c.

